<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
        <title>Formulário de Login</title>
    </h:head>
    <h:body>
        <ui:composition template="./face-professor.xhtml">
            <ui:define name="content">
                <div class="onethird login box">
                    <div class="box_header"><h2>Faça seu login abaixo:</h2></div>
                    <div class="box_content">
                        <h:form>
                            <h:outputLabel id="lblLogin" value="Login:"/>
                            <h:inputText id="txtLogin" value="#{login.login}" required="true"/>
                            <br/>
                            <h:outputLabel id="lblSenha" value="Senha:"/>
                            <h:inputSecret id="txtSenha" value="#{login.senha}" required="true"/>
                            <br/>
                            <h:selectOneMenu id="ddlTipoPessoa" required="true" value="#{login.dllPessoa}"> <!--onchange="submit()"-->
                                <f:selectItems value="#{login.selectItem}" />    
                            </h:selectOneMenu>
                            <br/>
                            <h:commandButton class="botao1" action="#{login.loginPessoa}" value="Logar" />
                        </h:form>
                    </div>
                </div>
            </ui:define>
            <ui:define name="login">Visitante</ui:define>
            <ui:define name="navegacao"></ui:define>
        </ui:composition>
    </h:body>
</html>
